<?php
$GLOBALS['MYSQL_NUM_QUERIES'] = 0;
$GLOBALS['MYSQL_QUERY_TIME'] = 0;
$GLOBALS['mysql_debug'] = "";
require_once(S_BASE_URL.'config.php');
require_once(S_BASE_URL.'includes/core.cleaning.functions.php');
if(DB_USE == 'mysql')
	require_once(S_BASE_URL.'includes/db/mysql.core.class.php');
elseif(DB_USE == 'sqlite')
	require_once(S_BASE_URL.'includes/db/sqlite.core.class.php');
else
	die('no db configuration found');
require_once(S_BASE_URL.'includes/core.functions.class.php');
require_once(S_BASE_URL.'includes/admin/core.admin.class.php');
$validation = new admin;
$validation->validate(ROOT_URL.'admin.php?login=true&redirect='.TB_ROOT_URL.'tinybrowser.php', '');
?>